/**
 * Created by Administrator on 2016/4/8.
 */
import java.util.Scanner;
public class sizeyunsuan1 {
    public static void main(String[] args) {
        System.out.println("请输入第一个数");
        Scanner scanner = new Scanner(System.in);
        double i;
        i= scanner.nextDouble();
        System.out.println("请输入第二个数");
        Scanner scanner1 = new Scanner(System.in);
        double j;
        j = scanner1.nextDouble();
        System.out.println("请输入要进行什么操作");
        Scanner scanner3 = new Scanner(System.in);
        String op;
        op = scanner3.next();
        char z = op.charAt(0);
        if(z =='+'){
            System.out.printf("%f",i+j);
        }
         else if(z == '-'){
             System.out.printf("%f",i-j);
         }
        else if(z =='*'){
            System.out.printf("%f",i*j);
        }
        else if(z == '/'){
            if(j == 0) System.out.println("除数不能为0");
            else System.out.printf("%f",i/j);
        }

    }
}
